lib=mylib.a

$(lib):cal.o print.o
	ar -rc $@ $^
cal.o:cal.c
	gcc -c $^ -o $@
print.o:print.c
	gcc -c $^ -o $@
.PHONY:clean
clean:
	rm -rf *.o *.a
.PHONY:output
output:
	mkdir -p lib/include
	mkdir -p lib/mylib
	cp *.h lib/include
	cp *.a lib/mylib
